package org.skyeye.modeling.customerized.figures;

import org.eclipse.draw2d.StackLayout;
import org.skyeye.modeling.customerized.model.BaseSwitch;
import org.skyeye.modeling.customerized.model.SimpleOutput;

public class BaseSwitchFigure extends NodeFigure {
	final int R = 5;
	protected int value = 0;
	public BaseSwitchFigure() {
		
		
		FixedConnectionAnchor anchor;
		anchor = new FixedConnectionAnchor(this);
		anchor.offsetV = R;
		inputConnectionAnchors.addElement(anchor);
		outputConnectionAnchors.addElement(anchor);
		connectionAnchors.put(BaseSwitch.TERMINAL_LEFT, anchor);
		
	}

	public String toString() {
		return "BaseSwitchFigure"; //$NON-NLS-1$
	}
	
	public void setValue(int val) {
		this.value = val;
		repaint();
	}

}
